/**
 * @author LKQ
 * @date 2022/1/8 16:52
 * @description 超时
 */
public class Solution {
    public static void main(String[] args) {

    }
    public boolean isPerfectSquare(int num) {
        for (int i = 1; i < num; i++) {
            if (i * i == num) {
                return true;
            }else if (i * i > num) {
                break;
            }
        }
        return false;
    }
}
